
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class CalendatTest {

	/**
	 * @param args
	 * @throws ParseException 
	 */
	public static void main(String[] args) throws ParseException {
		SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
		Calendar sCal = Calendar.getInstance();
		Date dt = sCal.getTime();
		String sDT = dt.toString();
		System.out.println(sDT);
		Date date = sd.parse(sDT);
		System.out.println(date.toString());
	}
}
